<?php
/* @var $this QuotationOrderHeaderController */
/* @var $model QuotationOrderHeader */

$this->breadcrumbs=array(
	'Quotation Order Headers'=>array('index'),
	$model->quotation_no,
);

$this->menu=array(
	array('label'=>'View Quotation', 'url'=>array('quotationorderheader/viewQuotationOrderHeader','id'=>$model->quotation_no)),
	//array('label'=>'Add Item', 'url'=>array('create','quo_no'=>$model->quotation_no)),
	array('label'=>'Update Item', 'url'=>array('update', 'p_pn'=>$model->product_pn,'uom'=>$model->uom,'quo_no'=>$model->quotation_no)),
	array('label'=>'Delete Item', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','p_pn'=>$model->product_pn,'uom'=>$model->uom),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Back','url'=>'#','linkOptions'=>array('onclick'=>'js:history.go(-1);')),
);
?>

<h1>View Quotation item # <?php echo $model->product_pn; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'product_pn',
		'additional',
		array(
			'name'=>'qty',
			'value'=>$model->qty.' pc(s)',
		),
		'uom',
		array(//quotationNo
			'name'=>'products.unit_sell',
			'value'=>number_format($model->products->unit_sell*FormatingNumber::currency($modelPurchase->currency),2,',','.'),
         ),
		 array(
			'name'=>'products.total',
			'value'=>number_format($model->products->unit_sell*$model->qty*FormatingNumber::currency($modelPurchase->currency),2,',','.'),
         ),
	),
)); ?>